// var mongoose = require("mongoose");
// var mongoosePaginate = require("mongoose-paginate")
//
// var Schema = mongoose.Schema;
//
// var UserSchema = new Schema({
//     name:String,
//     password:String,
//     date:{type:Date,default:Date.now}
// })
//
// UserSchema.plugin(mongoosePaginate);
// module.exports = mongoose.model("User",UserSchema,"user");


var mongoose = require("mongoose");
var mongoosePaginate = require("mongoose-paginate")

var schema = new mongoose.Schema({
    name:String,
    words:String,
    linkid:String,
    date:{ type:Date,default:Date.now}
});

schema.plugin(mongoosePaginate);
var Comment = mongoose.model("Comment",schema,"comment");

module.exports = Comment;